<?php
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
    'id' => 'subscriber-form',
    'type' => 'horizontal',
    'enableAjaxValidation' => false,
        ));
?>

<p class="help-block">Fields with <span class="required">*</span> are required.</p>

<?php echo $form->errorSummary($model); ?>
<?php echo CHtml::hiddenField('BusTrip[bus_detail_id]', $bus->bus_detail_id);?>
<div class="control-group ">
    <label for="BusStation_station_id" class="control-label">Time</label>
    <div class="controls time">
        <?php
        $this->widget('frontend.protected.widgets.htime.HTime', array(
            'name' => 'BusTrip[start_time]',
            'time' => $model->start_time
        ));
        ?>

        To 

        <?php
        $this->widget('frontend.protected.widgets.htime.HTime', array(
            'name' => 'BusTrip[end_time]',
            'time' => $model->end_time,
        ));
        ?>
    </div>
</div>
<?php echo $form->textFieldRow($model, 'ordering', array('class' => 'span5', 'maxlength' => 128)); ?>

<div class="form-actions">
    <?php
    $this->widget('bootstrap.widgets.TbButton', array(
        'buttonType' => 'submit',
        'type' => 'primary',
        'label' => $model->isNewRecord ? 'Create' : 'Save',
    ));
    ?>

    <?php
    $this->widget('bootstrap.widgets.TbButton', array(
        'buttonType' => 'reset',
        'label' => 'Reset',
    ));
    ?>

    <?php echo CHtml::link('Back', url('bustrip/index', array('id' => $bus->bus_detail_id)), array('class' => 'btn')) ?>
</div>

<?php $this->endWidget(); ?>

<script>
    $(function() {
        $('#street').trigger('change');
    })
    
</script>
<style>
    .time select{
        width: 70px;
    }
</style>